<template>
  <div class="supportCenter">
    <HeaderBar title="Support Center" @back="router.back()" />
    <div class="feedback_wrap" @click="goFeedBack">
      <div class="left_block">
        <img src="@/assets/images/ic_feedbanck@2x.png" />
        <span class="text">Feedback</span>
      </div>
      <img src="@/assets/images/ic_next@2x.png" class="next_arrow" />
    </div>
    <div class="faq_wrap">
      <FAQ />
    </div>
    <!-- 底部 -->
    <div class="wrap_footer">
      <CommonFooter />
    </div>
  </div>
</template>

<script setup>
import FAQ from "@/components/FAQ.vue";
import HeaderBar from "@/components/HeaderBar.vue";
import { useRouter } from "vue-router";
import { trackEvent } from "@/utils/firebase";
import CommonFooter from "@/components/CommonFooter.vue";

const router = useRouter();

const goFeedBack = () => {
  trackEvent("支持中心_点击【Feedback】", { id: "100070" }); //埋点
  router.push("./feedback");
};
</script>

<style scoped lang="less">
.supportCenter {
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: 30px;
  .header_bar {
    position: fixed;
    width: 100%;
    z-index: 999;
    background-color: #fff;
  }
  /* 背景图设置 */
  background-image: url("../assets/images/bg_texture@2x.png");
  background-position: top center; /* 从顶部开始 */
  background-repeat: no-repeat; /* 不重复 */
  background-size: 100% auto; /* 宽度满屏，高度自适应 */
  background-color: #fbfbfd;
  .feedback_wrap {
    box-sizing: border-box;
    padding: 12px 15px;
    width: 100%;
    height: 57px;
    position: fixed;
    left: 0;
    top: 56px;
    z-index: 999;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left_block {
      display: flex;
      justify-content: left;
      align-items: center;
      img {
        width: 40px;
        margin-right: 16px;
      }
      span {
        font-size: 15px;
        color: rgba(0, 0, 0, 0.95);
      }
    }
    .next_arrow {
      width: 16px;
    }
  }
  .faq_wrap {
    box-sizing: border-box;
    padding: 0 24px;
    background: #fff;
    padding-top: 100px;
  }
  .wrap_footer {
    padding: 0px 16px;
  }
}
</style>
